package com.panda.entity.po;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 评论表(TArticleComment)表实体类
 *
 * @author makejava
 * @since 2022-05-10 19:28:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_comment")
public class Comment extends Model<Comment> {
    @TableId
    private Long id;
    //视频或者文章id
    private Long owner_id;
    //根评论id
    private Long rootId;
    //评论内容
    private String content;
    //所回复的目标评论的userid
    private Long toCommentUserId;
    //回复了具体哪一条评论的id
    private Long toCommentId;
    //评论人
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
    //评论时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    //删除标志（0代表未删除，1代表已删除）
    private Integer delFlag;
    //点赞数
    private Integer likeCount;
    // 评论或视频
    private String type;


}

